<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<header>接收信息：</header>
<ul></ul>
</body>
<script>
    window.onmessage = function(e){
        if ( e.origin !== "http://localhost:63342" ) {
            return;
        };
        var li = document.createElement('li');
        li.innerHTML = e.origin + " 发送: " + e.data;
        document.querySelector('ul').appendChild(li);
    };
</script>
</html>